package no.uib.hplims.models.peptideinformation;

import javax.persistence.Entity;
import javax.persistence.Lob;

import org.vaadin.appfoundation.persistence.data.AbstractPojo;

@Entity
public class ResponseCurve extends AbstractPojo {

	private static final long serialVersionUID = -1089062509280627203L;
	
	private SampleProcessingType processingType;
	@Lob
	private byte[] responseCurveFile;
	private String responseCurveFileName;
	private String areaStart;
	private String areaEnd;
	private double value;
	
	public ResponseCurve() {
		
	}

	public SampleProcessingType getProcessingType() {
		return processingType;
	}

	public void setProcessingType(SampleProcessingType processingType) {
		this.processingType = processingType;
	}

	public byte[] getResponseCurveFile() {
		return responseCurveFile;
	}

	public void setResponseCurveFile(byte[] responseCurveFile) {
		this.responseCurveFile = responseCurveFile;
	}

	public String getResponseCurveFileName() {
		return responseCurveFileName;
	}

	public void setResponseCurveFileName(String responseCurveFileName) {
		this.responseCurveFileName = responseCurveFileName;
	}

	public String getAreaStart() {
		return areaStart;
	}

	public void setAreaStart(String areaStart) {
		this.areaStart = areaStart;
	}

	public String getAreaEnd() {
		return areaEnd;
	}

	public void setAreaEnd(String areaEnd) {
		this.areaEnd = areaEnd;
	}

	public double getValue() {
		return value;
	}

	public void setValue(double value) {
		this.value = value;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		
		ResponseCurve that = (ResponseCurve) obj;
		
		if (!this.id.equals(that.id))
			return false;
		return true;
	}
	
	

}
